import { request } from "@umijs/max";
//家庭列表
export const getFamilyPage = (params: any) =>
  request(`/family/page`, {
    method: "POST",
    data:params,
  });

  //停启用家庭
export const changeFamilyStatus = (params:any) =>
request(`/family/status`, {
  method: "PUT",
  data:params,
});

  //删除家庭
  export const delFamily = (id:any) =>
  request(`/family/del/${id}`, {
    method: "DELETE",
  });